import { proxy, useSnapshot } from 'valtio'

type count = number
type increase = (val: number) => void
type decrease = () => void

const store = proxy<{ count: count, increase: increase, decrease: decrease }>({
  count: 0,
  increase: (val: number) => {
    store.count = val
  },
  decrease: () => {
    store.count--
  },
})

export default store;